<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/sys/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>修改企业信息</title>
<%@ include file="/WEB-INF/sys/include/css.jsp"%>
</head>
<body>
<form id="form" action="${path}/company/update.json" method="post">
<div class="form">
	<div class="group">
		<div class="label">*企业名称:</div>
		<div class="item"><input type="text" name="companyName" id="companyName" value="${company.companyName }" /></div>
	</div>
	<div class="group">
		<div class="label">*法人代表:</div>
		<div class="item"><input type="text" name="corporatePerson" id="corporatePerson" value="${company.corporatePerson }" /></div>
	</div>
	<div class="group">
		<div class="label">*联系人:</div>
		<div class="item"><input type="text" name="contactPerson" id="contactPerson" value="${company.contactPerson }" /></div>
	</div>
	<div class="group">
		<div class="label">*联系电话:</div>
		<div class="item"><input type="text" name="phone" id="phone" value="${company.phone }" /></div>
	</div>
	<div class="group">
		<div class="label">企业地址:</div>
		<div class="item"><input type="text" name="address" id="address" value="${company.address }" /></div>
	</div>
	<div class="group">
		<div class="label">营业执照号:</div>
		<div class="item"><input type="text" name="businessNo" id="businessNo" value="${company.businessNo }" /></div>
	</div>
	<div class="group">
		<div class="label">备注:</div>
		<div class="item"><textarea id="remark" name="remark">${company.remark }</textarea></div>
	</div>
	<div class="buttons">
		<button class="highlight" id="submit1" type="button">确定</button>
		<button type="button" id="cancel1">取消</button>
		<input type="hidden" id="companyid" name="companyid" value="${company.companyid }" />
	</div>
</div>
</form>
<%@ include file="/WEB-INF/sys/include/script.jsp" %>
<script type="text/javascript">
$(function() {
	$("#form").ligerForm({inputWidth: 300});
	
	verifyForm("form", {}, function(){
		$("#form").ajaxForm(function(data){
			UiUtil.isSuccess(data, "修改企业信息成功", function(){
				UiUtil.closeForm(true);
			});
		});
	});
	
	$("#submit1").click(function(){
		UiUtil.lockButton('submit1');
		$("#form").submit();
	});

	$("#cancel1").click(function(){
		UiUtil.closeForm();
	});
	
});
</script>
</body>
</html>